package com.exercise.game;

import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.ArrayList;
import java.util.List;

// 棋盘
public class Chessboard extends JPanel implements MouseListener {

    int i = 0,j = 0;
    // 棋盘 行数，列数
    int row = 15,col = 15;

    String chessboard1 = "chessboard1.jpg";
    String whiteChessPiece = "wcp.jpg"; // 白色棋子
    String blackChessPiece = "bcp.jpg"; // 黑色棋子

    // 棋盘可落子位置坐标数组 (1 白子，2 黑子)
    int positions[][] = new int[row][col];

    // 位置是否可用 是否可落子 默认可用
    boolean isVacancy = true;

    // 落子数
    int droppingNumber = 0;

    // 记录结果 排行榜
    List<Ranking>  rankingList = new ArrayList<>();

    // 绘制棋盘
    public void paint(Graphics g){
        super.paint(g);
    }

    @Override
    public void mouseClicked(MouseEvent e) {

    }

    @Override
    public void mousePressed(MouseEvent e) {

    }

    @Override
    public void mouseReleased(MouseEvent e) {

    }

    @Override
    public void mouseEntered(MouseEvent e) {

    }

    @Override
    public void mouseExited(MouseEvent e) {

    }
}
